# Maintainer: Rexct <rexct1 at gmail dot com>
pkgname=iptraf
pkgver=3.0.0
pkgrel=2
pkgdesc="A console-based network monitoring utility"
arch=('sh4')
url="http://http://iptraf.seul.org/"
license=('GPL2')
groups=()
depends=('ncurses')
optdepends=('glibc')
makedepends=()
provides=()
conflicts=('iptraf-ng')
backup=()
options=('!ccache')
install=

source=(stlinux23-sh4-$pkgname-$pkgver-$pkgrel.sh4.rpm::http://ftp.stlinux.com/pub/stlinux/2.3/STLinux/sh4/stlinux23-sh4-${pkgname}-${pkgver}-${pkgrel}.sh4.rpm )
noextract=()
md5sums=('94933c7c3c17bd31593bbcb37c08a78f')
         
build() {
cd "${srcdir}"
rpm2cpio stlinux23-sh4-$pkgname-$pkgver-$pkgrel.sh4.rpm | bsdtar -xf -

}

package() {
  cd "${srcdir}"
  cp -dr --no-preserve=ownership opt/STM/STLinux-2.3/devkit/sh4/target/usr "${pkgdir}"/
  mkdir -p "${pkgdir}"/usr/lib
  ln -s /usr/lib/libpanelw.so "${pkgdir}"/usr/lib/libpanel.so.5
}
